//bug needs to work with multi lines...
//also this should return only a raw string that's then handled w/in the js file locally.
$("#graph_0").replaceWith("<%= render :partial => 'data' %>");